package com.hundsun.aitest.common;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@ConfigurationProperties(prefix = "spring")
@Data
public class BladePlatformConfig {


    private Map<String, ProjectConfig> bladePlatform;

    @Data
    public static class ProjectConfig {
        private String name;
        private String url;
        private String apiKey;
        private String account;
        private String scriptPath;
        private String dbJdbc;
        private String dbUsername;
        private String dbPassword;
    }
}